<?php
namespace app\admin\model\operating;
use think\facade\Db;
use app\admin\common;

class Vip{
	public function findVip($_where,$_field){
		return Db::name("vip")->where($_where)->field($_field)->find();
	}
	
	public function selectVip($_where,$_field,$_limit,$_order){
		$_data=Db::name("vip")->where($_where)->field($_field)->limit(reset($_limit),end($_limit))->order($_order)->select();
		return empty($_data)?:$_data->toArray();
	}
	
	public function upVip($_up,$_where){
		return Db::name("vip")->where($_where)->update($_up);
	}
}
?>